package com.webservicedemo.ws.impl;

import javax.jws.WebService;

import org.springframework.stereotype.Component;

import com.webservicedemo.ws.MathematicalCalculation;
/**
 * endpointInterface  指定实现接口的包路径
 * @author wk
 *
 */
@WebService(name="MathService",
targetNamespace="http://www.MathematicalCalculation.ws.webservicedemo.com",
endpointInterface="com.webservicedemo.ws.MathematicalCalculation")
@Component
public class MathematicalCalculationImpl implements MathematicalCalculation {

	@Override
	public int add(int numA, int numB) {
		return numA+numB;
	}

	@Override
	public int multiplication(int numA, int numB) {
		return numA*numB;
	}

}
